package com.hirain.factory;

/**
 * Created by caicf on 2016/8/27.
 */
public class TestFactory {
    public static void main(String[] args) {
//        Factory factory=new MacFactory();
//        Product product=factory.getProductFromFactory();
//        String info = product.information();
//        System.out.println(info);
//
//        Factory iphoneFactory=new IPhoneFactory();
//        Product iphone=iphoneFactory.getProductFromFactory();
//        System.out.println(iphone.information());
        Factory factory=new MacFactory();
        factory.opeateProduct();
    }
}
